<?php
use think\facade\Route;

//登录各功能
Route::group('login',function (){
    //注册路由
    Route::post('register','app/Login/register');
    //登录
    Route::post('login','app/Login/login');
    //发送验证码
    Route::post('code','app/Login/SmsCode');
});

//用户个人信息修改
Route::group('user',function (){
    //用户列表
    Route::get('userList','app/User/userList');
    //修改功能
    Route::post('edit','app/User/edit');
    //上传文件(本地)
    Route::post('UploadImage','app/Upload/UploadImage');
    //上传七牛云
    Route::post('qiniu','app/Upload/qiniu');
})->middleware(\api\app\middleware\CheckToken::class);

//用户收货地址
Route::group('address',function (){
   Route::get('list','app/Address/list');
   Route::post('add','app/Address/add');
   Route::post('edit','app/Address/edit');
   Route::post('del','app/Address/del');
})->middleware(\api\app\middleware\CheckToken::class);

//金额有关

Route::group('money',function (){
    Route::post('add','app/Money/add');

})->middleware(\api\app\middleware\CheckToken::class);
